/*
 * @Author: pengtianrui 2276608413@qq.com
 * @Date: 2024-08-23 09:22:29
 * @LastEditors: Wang Shuo wangshuo@sgsimulation.com
 * @LastEditTime: 2024-08-30 13:45:07
 * @FilePath: \SGFEM\DataStructure\FEM\Property\src\ShellSectionLayer.cpp
 */
#include "DataStructure/Input/Property/ShellSectionLayer.h"

#include "DataStructure/Common/Validation.h"

bool SG::DataStructure::FEM::operator== (const ShellSectionLayer &a, const ShellSectionLayer &b)
{
    if (a.m_matId != b.m_matId)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_thickness, b.m_thickness))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_theta, b.m_theta))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isEQ (a.m_sout, b.m_sout))
    {
        return false;
    }
    return true;
}
